package com.outfood.api.controller;


import com.outfood.common.common.response.RestResponse;
import com.outfood.domain.FoodNotice;
import com.outfood.service.IFoodNoticeService;
import com.rys.common.utils.Search;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Api(value = "FoodNoticeServiceController" ,tags = {"广告类"})
@RequestMapping("/api/notice")
public class FoodNoticeServiceController {
    @Resource
    IFoodNoticeService foodNoticeService;
    @ApiOperation("设置回评权限")
    @GetMapping("get")
    public RestResponse get(){
        FoodNotice foodNotice = foodNoticeService.getList(new Search()).get(0);
        return RestResponse.success(foodNotice);
    }
}
